//
//  ExampleIrregularityContentView.swift
//  ESTabBarControllerExample
//
//  Created by lihao on 2017/2/9.
//  Copyright © 2017年 Vincent Li. All rights reserved.
//

import UIKit
import ESTabBarController_swift
class QPTabBarItemContentView: ESTabBarItemContentView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        textColor = rgb(153, 153, 153)
        highlightTextColor = rgb(0, 0, 0)
        
        renderingMode = .alwaysOriginal
    }
    
    override func updateLayout() {
        super.updateLayout()
        
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}

class QPTabBarShareItemView: ESTabBarItemContentView {

    override init(frame: CGRect) {
        super.init(frame: frame)

        
        renderingMode = .alwaysOriginal
        
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func updateLayout() {
        super.updateLayout()
        self.imageView.sizeToFit()
        self.imageView.center = CGPoint.init(x: self.bounds.size.width / 2.0, y: self.bounds.size.height / 2.0 - 5)
    }

}
